
    <!DOCTYPE html>
    <html lang="zh-CN">
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>项目中有多少个模块，模块间怎么调用的？ - 学习卡片</title>
      <style>
        body { font-family: sans-serif; background-color: #f0f8ff; color: #333; display: flex; flex-direction: column; align-items: center; padding: 50px 20px; }
        .header h1 { font-size: 32px; }
        .grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; width: 100%; max-width: 1200px; }
        .card-container { perspective: 1200px; cursor: pointer; height: 250px; }
        .card { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.7s; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
        .card-container.flipped .card { transform: rotateY(180deg); }
        .card-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; flex-direction: column; box-sizing: border-box; border-radius: 16px; background-color: #fff; padding: 24px; }
        .card-back { background-color: #f0fff4; transform: rotateY(180deg); justify-content: space-between; }
        .card-category { font-size: 14px; color: #0052d9; margin-bottom: 8px; font-weight: 500; }
        .card-question { font-size: 20px; font-weight: 500; flex-grow: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
        .card-answer-wrapper { flex-grow: 1; overflow-y: auto; }
        .card-answer { font-size: 15px; line-height: 1.7; }
        .card-footer { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 16px; margin-top: 16px; }
        .card-source { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 12px; margin-top: 12px; }
      </style>
    </head>
    <body>
      <div class="header">
        <h1>项目中有多少个模块，模块间怎么调用的？ - 学习卡片</h1>
      </div>
      <div class="grid-container">
        
    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">机制</div>
          <div class="card-question">订单管理模块在创建订单前，是如何确保商品库存充足的？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">机制</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">订单管理模块会调用库存管理模块来检查库存，以确认商品数量是否足够。如果库存不足，将抛出异常。</div>
          </div>
          <div class="card-source">来源: 2. 订单管理模块</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">特性</div>
          <div class="card-question">缓存模块在系统中的主要作用是什么？它是如何实现这一作用的？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">特性</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">缓存模块的主要作用是提高系统性能。它通过将频繁访问的数据存储在内存中，从而减少对数据库的直接访问来实现这一目标。</div>
          </div>
          <div class="card-source">来源: 9. 缓存模块</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">功能</div>
          <div class="card-question">安全模块在整个项目架构中承担了哪些核心职责？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">功能</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">安全模块负责系统的整体安全性，其核心职责包括认证、授权以及数据加密。</div>
          </div>
          <div class="card-source">来源: 10. 安全模块</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">机制</div>
          <div class="card-question">支付模块是如何处理实际的支付流程的？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">机制</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">支付模块通过调用第三方支付网关的API来处理支付请求，这是一种外部调用。</div>
          </div>
          <div class="card-source">来源: 4. 支付模块</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">协作</div>
          <div class="card-question">报告模块需要从哪些其他模块获取数据来生成报告？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">协作</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">报告模块需要从订单管理、用户管理、库存管理等模块获取数据以生成销售、用户行为和库存等报告。</div>
          </div>
          <div class="card-source">来源: 8. 报告模块</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">模式</div>
          <div class="card-question">根据文档，用户管理模块存在哪两种主要的调用方式？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">模式</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">用户管理模块的调用方式分为两种：一是内部调用，由其他模块（如订单模块）发起用于身份验证；二是外部调用，由前端或外部系统调用其登录注册API。</div>
          </div>
          <div class="card-source">来源: 1.2 调用方式</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">协作</div>
          <div class="card-question">库存管理模块最主要的内部协作方是哪个模块？它们之间如何协作？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">协作</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">库存管理模块最主要的内部协作方是订单管理模块。它们通过库存检查和库存扣减进行协作。</div>
          </div>
          <div class="card-source">来源: 3. 库存管理模块</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">功能</div>
          <div class="card-question">日志和监控模块的功能是什么，以及其他模块如何与它互动？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">功能</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">该模块的功能是收集系统日志、监控系统性能并生成告警。其他模块在处理各自的业务逻辑时，会主动记录日志和监控数据，从而与该模块进行互动。</div>
          </div>
          <div class="card-source">来源: 7. 日志和监控模块</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">机制</div>
          <div class="card-question">当订单确认后，通知模块是如何将消息发送给用户的？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">机制</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">通知模块从订单管理模块接收到通知请求后，会利用外部的邮件服务或短信服务等，将订单确认信息发送给用户。</div>
          </div>
          <div class="card-source">来源: 5. 通知模块</div>
        </div>
      </div>
    </div>

      </div>
    </body>
    </html>
